
package com.friendfeed.api.internal.gson;

import com.friendfeed.api.FriendFeedUtils;
import com.google.gson.*;

public class GsonFactory
{
	static public Gson createGson()
	{
		GsonBuilder builder = new GsonBuilder();
		
		builder.registerTypeAdapter(java.util.Date.class, new CustomDateTypeAdapter(FriendFeedUtils.DATE_PATTERN));
		
		Gson gson = builder.create();
	
		return gson;
	}
}
